package cn.nai.DemoRan.demo05;

public class Teacher extends Employee{
    private double classPay;
    public Teacher() { }
    public Teacher(String name, double salary, double classPay) { super(name, salary);this.classPay = classPay; }
    public double getClassPay() {
        return classPay;
    }
    public void setClassPay(double classPay) {
        this.classPay = classPay;
    }
    public double annual() {
        return super.allYearCome() + classPay;
    }
}
